package bgai.players;

import bgai.ai.minimax.Board;
import bgai.gamelogic.Backgammon;
import bgai.gamelogic.CheckerColor;
import bgai.gamelogic.EvaluationFunctions;
import bgai.players.ComputerPlayer.SearchType;

public class Hit1 extends ComputerPlayer {
	

	public Hit1(CheckerColor color, int maxDepth) {
		super(color, maxDepth);
	}
	public Hit1(CheckerColor color, int maxDepth, SearchType type) {
		super(color, maxDepth, type);
	}
	
	@Override
	public double evaluate(Board board, boolean prevIsMaxNode) {
//		double max= EvaluationFunctions.hit1((Backgammon) board, board.getBoardType(), true);
//		double min= EvaluationFunctions.hit1((Backgammon) board, board.getBoardType(), false);
//		System.out.println("VALUTAZIONE: max="+max+" ; min="+min+" ; uguali? "+(min==max)+" ; opposti? "+(min==-max));
		return EvaluationFunctions.hit1((Backgammon) board, board.getBoardType(), prevIsMaxNode);
	}


}

